package com.lzx.spring3.aop.cglib;

import com.lzx.spring3.dao.UserDao;
import com.lzx.spring3.dao.impl.UserDaoImpl;
import com.lzx.spring3.meta.User;
import com.lzx.spring3.meta.Watch;

public class Main {

	public static void main(String[] args) {

		UserDao userDao = CGlibProxyFactory.createProxyInstance(
				new UserDaoImpl(), UserDao.class);
		
		
		userDao.get1(new User());

		
		// Watch.start();
		// int count = 0;
		// while (count < 5000000) {
		// userDao.get1(new User());
		// userDao.add(new User());
		// count ++;
		// }
		// Watch.dis();
		

	}
}
